<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">报文数据列表</h4>
</div>

<div class="modal-body ">
    <div id="toolbar1" class="btn-group btn-group-sm ">
        <a type="button" class="btn btn-primary" data-toggle="modal"
           href="/project/objectManage/message_add" data-target="#modal2">新增</a>
        <a type="button" onclick="" class="btn btn-danger">删除</a>
        <a type="button" href="/project/objectManage/message_edit" class="btn btn-info" data-toggle="modal"
           data-target="#modal2">编辑</a>
        <a type="button" href="" class="btn btn-success" data-toggle="modal" data-target="#modal">导出配置文件</a>
        <a type="button" onclick="" class="btn btn-success">导入配置文件</a>
    </div>
    <table id="dataTable1" data-url="/project/objectManage/message_data" data-page-list=[] data-striped="true"
           data-pagination="true" data-page-size="10" data-cache="false" data-toolbar-align="right">
    </table>
</div>

<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
<script>
    var dataFormat_message = [{
        checkbox: true
    }, {
        field: 'id',
        title: 'id',
        visible: false
    }, {
        field: 'subjectName',
        title: '科目名称',
        sortable: true
    }, {
        field: 'canId',
        title: 'CAN_ID',
        sortable: true
    }, {
        field: 'canLong',
        title: 'CAN数据长度',
        sortable: true
    }, {
        field: 'head',
        title: '大小头',
        sortable: true
    }, {
        field: 'dataType',
        title: '数据类型',
        sortable: true
    }, {
        field: 'beginByte',
        title: '起始字节',
        sortable: true
    }, {
        field: 'beginPosition',
        title: '起始位',
        sortable: true
    }, {
        field: 'endByte',
        title: '结束字节',
        sortable: true
    }, {
        field: 'endPosition',
        title: '结束位',
        sortable: true
    }, {
        field: 'offset',
        title: '偏移量',
        sortable: true
    }, {
        field: 'multiple',
        title: '倍率',
        sortable: true
    }, {
        field: 'unit',
        title: '单位',
        sortable: true
    }, {
        field: 'objId',
        title: '对应平台编号',
        sortable: true
    }];

    window.onload = function () {
        getTable(dataFormat_equipment, "dataTable");
    };
</script>


